<?php
class session{
	public function Insert($session)
	{
		$ci =& get_instance();
		
		$ci->db->insert("session", $session);
	}
	
	public function GetByContent($content)
	{
		$ci =& get_instance();
		
		$query = $ci->db->get_where("session", array("content" => $content));
		
		return $query->row();
	}
	
	public function Update($session)
	{
		$ci =& get_instance();
		var_dump($session);
		
		$ci->db->where('id', $session->id);
		$ci->db->update('session', $session);
	}
}
?>